home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 105 (1991-02)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 105 (1991-02)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / AmigaUUCP / uucico / uucp.h < prev    next >
C/C++ Source or Header  |  1991-02-10  |  1KB  |  49 lines

  1.  
  2. /*
  3.  *  UUCP.H
  4.  *
  5.  *  Header file for uucp.
  6.  *
  7.  *  Pieces that look like they might be taken from Unix uucp are
  8.  *  cribbed with the aid of public domain uucp modules (like the F-protocol)
  9.  *  that use that interface.
  10.  *
  11.  *  Ported to Amiga by William Loftus
  12.  *  Changes Copyright 1988 by William Loftus.  All rights reserved.
  13.  */
  14.  
  15. #define Ifn    FOO    /* file descriptor of the "phone line" */
  16.  
  17. #define ASSERT(cond, msg, moremsg, huh) /**/
  18.  
  19. /* I may have these flipped from what Unix uses... */
  20. /* BUT: my code depends on these values in if (foo()) statements, sigh */
  21. #define SUCCESS     0
  22. #define FAIL        1
  23. #define REFUSED     2
  24.  
  25. #define LOG
  26.  
  27. #define MAXMSGLEN    ((NAMESIZE*4)+SLOP)     /* ?>?? FIXME */
  28. #define MAXMSGTIME    60    /* Timeout period for rdmsg */
  29. #define MAX_HOST    20    /* Host name length (uucp does 7) */
  30. #define MAX_LSYS    500    /* Max length of an L.sys line in chars */
  31. #define MAX_CTLLINE    100    /* Max length of a usenet.ctl line */
  32.  
  33. #define CTL_DELIM    " \t\n\r"       /* Delimiters for usenet.ctl */
  34.  
  35. extern int debug;        /* Debugging level */
  36.  
  37. /*
  38.  * Timeout for raw characters -- if we don't hear a char within BYTE_TIMEOUT
  39.  * seconds, we assume the other side has gone away.  Has nothing to do with
  40.  * retransmission timeouts (if any!).
  41.  */
  42.  
  43. #define BYTE_TIMEOUT    60
  44. #define BYTE_TO     60
  45. #define SENDEXPECT_TO    15
  46.  
  47. #define SLOP        10        /* Slop space on arrays */
  48.  
  49.